using System;
using System.Collections.Generic;
using NLite.Collections;

namespace NLite.Mini.Activation
{
    /// <summary>
    /// 
    /// </summary>
    [Serializable]
    public class ActivatorFactory : IActivatorFactory
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="type"></param>
        /// <returns></returns>
        public IActivator Create(string type)
        {
            switch (type)
            {
                case ActivatorType.Instance: return new InstanceActivator();
                case ActivatorType.Factory: return new  DelegateActivator();
                default: return new DefaultActivator();
            }
        }
       
    }

   
}
